﻿using CefSharp.WinForms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SmartFrame_DataCollect
{
    public partial class BIView : BaseModule
    {
        ChromiumWebBrowser webBrower;
        public BIView()
        {
            InitializeComponent();
            InitBorwser();
        }

        private void InitBorwser()
        {
            webBrower = new ChromiumWebBrowser();
            webBrower.Dock = DockStyle.Fill;
            this.Controls.Add(webBrower);
            RedirectPage("http://"+ DataBaseHelper.ServiceIP +"/deviceTypeList.html");
        }

        public void RedirectPage(string path)
        {
            webBrower.Load(path);
        }
    }
}
